<html>
	<head>
		<title>More PHP Samples </title>
	</head>
	
	<body>
		<?php
			//quiz
			if (3=="3")
				{
					echo "hello";
				}
			else if (3==="3")
				{
				echo "hi";
				}
			else
			{
			echo "bye";
			}
			echo "<br/>";
			//end of quiz
			
			define("_PI_", 3.1415);
			define("NAME_LABEL", "Name");
			
			$name="John Doe";
			echo "PI equals "._PI_ .".<br/>";
			echo NAME_LABEL . " : $name <br/>";
			function displayMagicConstants()
			{
			echo __LINE__ ."<br/>";
			echo __FILE__ ."<br/>";
			echo __FUNCTION__ ."<br/>";
			}
			displayMagicConstants();
			$x=3;
			$y=4;
			//if else if
			if ($x<$y)
			{
				echo "$x is smaller than $y.";
			}
			else if ($y<$x)
			{
				echo "$y is larger than $x.";
			}
			else
			{
				echo "$x and $y are equal";
			}
			
			echo "</br>";
			
			//if-elseif-endif
			
			if ($x<$y) :
				echo "$x is smaller than $y.";
			
			elseif ($y<$x):
			
				echo "$y is larger than $x.";
			
			else:
			
				echo "$x and $y are equal";
			endif;
			
			echo "</br>";
			
			include_once("function.php");
			$here_class = new SampleClass;
			$here_class->hello();
						
		?>		
	</body>
</html>